<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
  <title>FBBase</title>
  <%= stylesheet_link_tag 'base' %>
  <%= javascript_include_tag :fckeditor %>
</head>

<body class="thrColLiqHdr">
<a style="margin-left: 10px;float:left;" target="_blank" href="http://amos.im.alisoft.com/msg.aw?v=2&uid=cuizhenghz&site=cnalichn&s=1&charset=utf-8" ><img border="0" src="http://amos.im.alisoft.com/online.aw?v=2&uid=cuizhenghz&site=cnalichn&s=1&charset=utf-8" alt="点击这里联系站长" /></a>
<div id="container">
<!-- <div id="main"> -->
 <div id="header">
   <div id="user_state">
   <%begin%>
   <%if(session[:uinfo][:login_state]==true) then%>
   	  <%if(session[:uinfo].image) then%>
	  	<%=image_tag(session[:uinfo].image.path, :size => "55x55", :alt => session[:uinfo][:nickname])%>
	  <%end%>
      <%=link_to session[:uinfo][:nickname],member_url(session[:uinfo][:id])%>
   <%else%>
     <%=link_to "登陆",url_for(:controller=>:session,:action=>:default)%>
   <%end%>
   <%rescue%>
     <%=link_to "登陆",url_for(:controller=>:session,:action=>:default)%>
   <%end%>
   |
   <%=link_to "退出",url_for(:controller=>:session,:action=>:logout)%>
   <%begin%>
     <%if(session[:uinfo][:login_state]==true) then%>
     <h5 style="color: gray"><%="上次登陆时间:#{session[:uinfo][:last_acc_date]}"%></h5>
     <%end%>
   <%rescue%>
   <%end%>
   </div>
<h1 style="text-decoration:blink">腐败基地</h1>
  <!-- end #header --></div>
<div id="sidebar1">
  <!-- <div id="main_left"> -->
  <h3><%=render(:partial=>"partial/catalog")%></h3>
<p>&nbsp;</p>
    <!-- end #sidebar1 --></div>
  <div id="sidebar2">
    <h3><%=flash[:notice]%> </h3>
<p>&nbsp;</p>
    <!-- end #sidebar2 --></div>
  <div id="main_center">

<h1> <%=controller.controller_name%>.<%=controller.action_name%> </h1>
    <%= yield  %>
    <p>&nbsp;</p>
    <p style="color: green"><%= debug(flash) %></p>
    <p style="color: green"><%=debug(params)%></p>
	<p style="color: green"><%=debug(session)%></p>
	<!-- end #mainContent --></div>
	<!-- 这个用于清除浮动的元素应当紧跟 #mainContent div 之后，以便强制 #container div 包含所有的子浮动 --><br class="clearfloat" />
<%=render(:partial=>"partial/footer")%>
<!-- end #container --></div>
</body>
</html>
